import request from "@/utils/request";

export function createOrder(data) {
  return request({
    url: "/workOrder",
    method: "post",
    data,
  });
}
export function getOrderList(params) {
  return request({
    url: "/workOrder/list",
    method: "get",
    params,
  });
}
export function getOrderMsgList(params) {
  return request({
    url: "/workOrder/msg/list",
    methods: "get",
    params,
  });
}
export function orderSendMsg(data) {
  return request({
    url: "/workOrder/msg/send",
    method: "post",
    data,
  });
}
export function changeOrderStatus(data) {
  return request({
    url: "/workOrder/status",
    method: "post",
    data,
  });
}

export function allocationOrder(data) {
  return request({
    url: "/workOrder/allocation",
    method: "post",
    data,
  });
}
